# Install

Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;

irm get.scoop.sh -outfile 'install.ps1';
iex "& {$(irm get.scoop.sh)} -RunAsAdmin";

scoop install git aria2;
scoop bucket add extras;
scoop install komorebi whkd windows-terminal neovim gcc;

iwr https://notabug.org/likerice/dotfiles.win/raw/master/komorebi-whkdrc/komorebi.generated.sample.ps1 -OutFile $Env:USERPROFILE\komorebi.generated.ps1;
iwr https://notabug.org/likerice/dotfiles.win/raw/master/komorebi-whkdrc/komorebi.sample.ps1 -OutFile $Env:USERPROFILE\komorebi.ps1;
mkdir $Env:USERPROFILE\.config -ea 0;
iwr https://notabug.org/likerice/dotfiles.win/raw/master/komorebi-whkdrc/whkdrc.sample -OutFile $Env:USERPROFILE\.config\whkdrc;

$folderPath = "$Env:LOCALAPPDATA\Microsoft\Windows Terminal"
$folderExists = Test-Path $folderPath

if(!$folderExists){
    New-Item -Path $folderPath -ItemType Directory;
	iwr https://notabug.org/likerice/dotfiles.win/raw/master/WindowsTerminal/settings.sample.json -OutFile "$Env:USERPROFILE\scoop\apps\windows-terminal\current\settings\settings.json";
}

komorebic start --await-configuration
